Fixed stack build script to support C++ 11. Toolchain switch from 4.4.3. to 4.7.