Add support for FreeBSD.
- Enable execute permission.
- Switch to using c++ as the compiler.