build script: add flag to prevent from 'wrong java version warning'