Gallery2 for jdk7 compile fix