Fix compilation and javadoc warnings