fix a few errors
build system issues