Fixed or turned off deprecation warnings when the API doesn't exist on GNUstep
Fixed or worked around remaining warnings