Whoops. It is gdi.lib, not gdi32.lib. (github issue #61)