Fixed some Maven errors and warnings using JDK8