compilation problems due to jre 1.6. Updated to 1.7.