fixed missing java7 flag in build