Pass user env as void * in callbacks