change compilation order to workaround windows issue.

Sometimes on windows, no java sources are sent to the
aggressive compiler when there are no scala sources.

Review by @jamesward or someone on the Akka team, like @bantonsson