Fix compilation problems with clang

Apparently, clang presents itself as gcc 4.2 even though it supports the final version of rvalue references. Restrict the workaround to gcc only.
Merge pull request #6 from Lastique/patch-3

Fix compilation problems with clang