Fix for rvalue references when compiling with support for CPP11.

Fix for issue #793