mk: Fix a minor makefile warning on windows
configure: Fix the compatibility code for --enable-nightly

When --enable-nightly is not specified this expression is malformed
because $CFG_ENABLE_NIGHTLY is undefined.
auto merge of #17538 : brson/rust/winmk, r=alexcrichton