wrappers/cpp: replace std::make_pair with and more compatible assignment - fixes #339

Signed-off-by: Benn Snyder <benn.snyder@gmail.com>