clib: new raw_alloc and register_static_object services