BSD/Darwin-fixes + detect clang and do not include -ansi / -Werror