BUG: fix QProcess if no GUI and fix windows compilation for ImageMath