OSX support (sorta)