Fixed several warnings in Eclipse