Enforce java 7 (necessary for awt keyboard char conversion) and remove warnings