Modified to fix compilation error in GNUstep while still works in XCODE