Added better support for libraries in hook_make_validate_info()