safer intrinsics to guard against bugged MinGW arch code gen