update linux build makefile
add some more utility code