BSD support

This has been tested on FreeBSD 9.1.

If you try to build on FreeBSD without these changes you will get the error [`You must set the Minecraft Version!`](http://pastebin.com/raw.php?i=KxuFgb9M)