bsd-specific changes