fix strptime on bsd