Fix for bug found by Arindam Mukherjee where OnCallFunc would not work on non-MSVC targets