Fixed compile warnings, working on preprocessing