Tests ci-build with c++0x flag
Fixes severe memory leaks
Adds convenient version getter/setter to build script