Fix build scripts.