add a build status image
make it compile on Java7.