Remove useless stuff. Fix work on msvc 2010. Fix trailing whitespaces removal on msvc 2010.
Still there's conflict with trailing whitespaces removing macro.