update flags to include and links against libgd