Use macos hacks only if need to