FreeBSD fixes

Fixes required to build recent springlobby on FreeBSD