Remove OSX only code from general build