clean up makefile
fix compiler warning on 64bit systems