Added ifndef statements to remove stuff that is not suported by GNUstep