Use PIC relocation on FreeBSD (fixes #6568)

Fixes #6568

Also fixes a typo in platform.h (double underscore in ```_OS_FREEBSD__```). As far as I can grep that symbol does not yet appear anywhere else in the repository.