Added support for FreeBSD and pfSense

I run a net6501 box as a router using pfSense 2.1. I took your source and added support for the FreeBSD and pfSense. I have verified that the source still compiles on Linux. I would like to contribute these changes to your repository if you agree with them.