SERVER-7174: fix build/test errors in debug mode