Enable C++11

Closes #317