bsd platform fix