Make the code in copycat-core compile on java1.7