fix build for other OSs