Fix minor 51 and set java to 1.6