Fix compilation with gcc 4.5 in C++11 mode

Gcc 4.5 does not allow non-public defaulted functions, so fall back to the C++03 version. Also replaced the deprecated macros with the new ones and adjusted formatting.
Merge pull request #5 from Lastique/patch-1

Fix compilation with gcc 4.5 in C++11 mode