Warn about unlisted used modules for both libs and exes.
Include the Main module and the auto generated package module when checking used modules.