Fixed compile for OS X.