Java8 bug linux workaround