udpate versions and compile on java 6