java: Enable assertions when doing 'make check'.