Fixed linking error on Mac OSX.