more compilation flags, remove useless header
fix crappy printfs