Switch to -std=c++0x

Fixes #1