Eclipse compatibility

Sources adjusted to compile in Eclipse.
Warnings cleaned.