Fixes compile time errors in non-main modules