Build broken for gcc

Fixed the build for gcc after the introduction of ExpectCalls/OnCalls.