Fix conflicting types for strnstr on freeBSD. Thanks to Mathias H for the report.