Added a condition, so the OS X specific flags only get applied
when actually compiled on a Mac