fix problems with parallel builds