Let Java compiler output all warnings

Warnings can reveal problems in the code. This will enable all of them and there are currently many. Another PR will be submitted to fix the warnings.