fixes to compile on modern osx
ignore build products