more makefile fixes
fix unsigned/signed comparison