Fix build for OS/X