1. Refine Makefile.
2. Fix the istream bug.