Add extra functions to ResolveLibs.cmake