Fixed compiler and Maven warnings.