Changes to compile on OS X.