Add support for optional post-compile weaving

Fixes #13