Make compilable on Mac OS X.