Fixes some compile errors in the JOAL backend