Delay import of pkg_resources
This does not introduce a performance gain alone, but importing pkg_resources is costly at the moment and can be avoided until it is actually needed.
Part of efforts to address #172 (closed) (and #171 (closed) probably)