Autogen fix osx

The autogen script wasn't working on OSX machines because the options being used for `sed` and `date` didn't exist in the BSD version of them. I added the BSD equivalent of them.