Fixed some of the warnings when doing mvn compile