Updated POM to work better on more target platforms. (Fix contributed by
Daniel Karlsson.)