Fix detecting libboost compiled with .dylib extension on Mac OS X

In Mac OS X shared libraries have .dylib extension 

This will resolve https://github.com/qbittorrent/qBittorrent/issues/392