The solution I've found to the "package main" problem is to put the "main" as a sub package.
-src-myapp-main1
\shared_code
\main2
That way main can import "myapp/shared_code". Yes, the packaging standard is being broken for the main programs, but that's ok, nothing needs to import them.