need to catch OSError in case pkg-config is not available.