Fix up define guards for OS X