Fix OS/X build