silence _BSD_SOURCE deprecation warnings in GCC 4.9+

This makes GCC 4.9+ compile the code without warnings. It works fine in GCC 4.6 which is as far back as I was able/willing to test.