misc work on porting to gnustep