Support instrumentation of preloaded modules for >= 17.1

Fixes #37.