cmakelists: simplified build for win32 and linux