jewel: fix some compile errors