Fixed build scripts for 1.6.4