build: Make compilable with gcj

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>