Fix some gtk defines, missing leak in tests disappeared