SERVER-8685 Fix gcc compile