Try to make things bsd friendly.