Fix build scripts