Corrected the dependency check issue for Build_Library and GenDll macros.