[WIP] Require GD2

Haven't tested it yet, past midnight here. Will finish later/tomorrow.