make it compile on OS X