Fixed warnings when building with Maven.