add some stuff for OSX.