Fixed building on OS X