Minor improving to build on BSD systems