build scripts - make the default build mode release; also some thing
were broken in release mode (with optimization) my bad.