Added options to compile under OSX.