Make warnings not be fatal on JVM.