Removed dependencies on java.awt.Color and fixed some warnings.