small fixes in build scripts