cmake: fix nmake build