win32: fix warning and source list display in cmake