Make perf attributes depending on the resource module optional.

This makes the module usable on Python implementations, such as
Jython, that lack the resource module.
Bumped version number.