minor fixes of buildscripts