1.2.x is way too old for FreeBSD. You need either the latest 1.3.x or a recent source snapshot. You can fix your client compilation problem by reading and following the instructions in the top README. I can't recommend running the server on FreeBSD. No one is actively developing it.