Add -Xlint:all option to javac call.