SERVER-6400 - fix compile with optimizer onf