FreeBSD fixes

As per your request in the Lazarus Forums to test LockBox2. These two commits make your example code you posted on the Forum compile. No idea if the whole library works, but the test project compiles and runs here now.

I would suggest you use a Unit Testing Framework like FPTest (which is compatible with DUnit2) to create a test suite of expected results. That way you can easily verify if things work under Free Pascal, Delphi etc.