small fixes to get it compiling again in Oxygene