Fixes building on OS X