Fix #856: Make javalibEx compile and properly test in CI

That explains why my IDE was telling me that `buf` did not exist ^^