Added -std=c++0x for constexpr; switched several NULL to nullptr
Fixes #21; Fixes #34