PTFM-12309 One last change to squash LLVM errors

This patch makes it possible to build api_helper.cpp with both LLVM and
GCC; before this LLVM/Clang would error out on these lines with "error: use of
overloaded operator '==' is ambiguous".