Bsd fix

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