Bugfix: BSD compatibility (rev. 3)

Signed-off-by: nixnodes <code@eth.si>