fixing build scripts.