Work around Apple's API breaking the C standard