Added -Xlint and fixed warnings caused by it