JDK8: compilation fixes for b84