adapt to work with mingw
disable targets for visual