modify to compile with msys/mingw on windows
add icon to system icons