Fixed issues with remote_result_type for GCC4.4