Fixed compile issues by setting java to 1.7.