add a more or less dirty hack to support autoloading when compiling from an external project/package