Fixed datanucleus compilation errors