Fixed FreeBSD dynamic linker library

I just noticed that the fix for OS X Mavericks in #424 broke the fix for FreeBSD compilation discussed here: http://forum.mc-server.org/showthread.php?tid=1215. I've Implemented a new fix that should deal with both issues.