Fix includes and their paths. Fix compiling errors under gcc. Fix signed / unsigned comparison warning (and a bug, potentially).
Linux compiling scripts.