Fix for OS X using .so instead of .dylib with Cmake.