fix java7 build