Added java flags to limit to sdk 1.6