[trunk] replaced malloc with opj_malloc. (Fixes issue 368).
[trunk] Changed error to warning when no EOC found in codestream (fixes
issue 366)
[trunk] allow compilation with MinGW32 (fixes issue 361)
[trunk] improve memory management (fixes issue 359)
add timing to compress and decompress