fixed some bsd incompatibilities