make LibraryHacks.cpp standalone