Fix to OS X build error