implementing fusion#compile; works for non-FFI programs