Fix for linking on Mac OS X.