clean up
build script modified for static linking