update exe and lib build rules
Remove unnecessary setting in building exe
Change lib's dependence build.