add freebsd compiler flags

fixes building on freebsd
Merge pull request #24 from jakschu/master

add freebsd compiler flags