Fix several bugs in msrle32 preventing it to load.