Charj: add framework for detecting necessary module externs