improved otype detection, fix pom compiler settings