Solve various type problems(some at compile time, others causing crashes with wxwidget/Xorg
Enable GSdx to build and work(in hardware mode only) modifs are not clean, except for loop
unroll which is nescessary.