Fixed several warnings/compile problems with pure maven (outside
eclipse)