mongodb: fix Werror issue

... and yes, I insist on && even after variable definitions which
are first in BUILD