fixed compiling issues, setting source to java 1.7