more bsd fixes
freebsd fix, use detected cxx compiler when building esl
tgmath.h on freebsd is horribly broken and should never be used until they fix their operating system