Fix bad cast in preprocess.c
Replaced open/stat with rm_sys_{open,stat}
Fixed shredder on 32, some other parts are still buggy.