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.

Originated from: http://thread.gmane.org/gmane.comp.lib.boost.devel/250206