gd library changes (fixes)