removing useless logging and basic porting changes
franky adds flushing to the other exception cases otherwise we might not get our output before the program terminates
franky adds kalin s win debug output string logging.
this is a dropin file that will automatically detect if there s a debugger attached and redirect the cout cerr output to the debug console of visual studio
franky adds the bitdepth since it wasn´t being set
franky fixes the way some preproc were being preprocessed by #if statements