1. Fix loop dependance lead to make dead loop.
2. Fix when build dyn-lib only LDFLAGS contain -fPIC but not CFLAGS.
3. Modify: if DEP_DIR is empty, it will never inherit value from SUBDIR now.