made it compile with gcc 4.4
gcc 4.4 fix
fix crosscompiling
implement missing hsv conversion, silence cimg popups