Fix OS X build issue