minor modify LibraryHacks.cpp