fix signed errors detected with apple clang

also add a bench make target