Fixed build system w/ new g++ 4.8 and cmake 2.8.11. Debug info added.
Rakefile is much more intelligent.