force handle as void_p, seems fix mac problem