Make it work on OS X