pom: Add -Xlint:all for a similar effect to -Wall with GCC

Does not affect tests, but at least some simple mistakes are now
possibly more easily noticed
src/main: Fix all compiler warnings