compile do_xyz functions correctly