add file to makefile
fix 10.5/10.6 incompatibilities