FreeBSD 10 w/clang compile fixes

These patches address the problems Mangos Three has building on FreeBSD 10 using clang.  I tried to only target FreeBSD 10 w/clang because Mangos, at my last try, builds fine on FreeBSD 9 and older.  This has not been tested on any other platform so hopefully it doesn't mess with building on any other platform.