Fix regexp matching function names in gen-lib-overrides.sh