Add flag to stop OSX optimisations