Fix for #1348: No check when compiling code that depends on java.base without importing it?

Look for packages and not modules
CompilerTest: make it possible to pass options to assertErrors
Test for #1348: No check when compiling code that depends on java.base without importing it?