Fixes an isssue when running on FreeBSD 10, where the different format of .so
files causes an exception when trying to load a system library.