I don't know your setup but you should usually get some linker error when not linking against the gtkd libraries.Also your first post whould suggest you are using Windows while -L-ldl would link in the Linux dynamic linker.
I am using Windows, but adding those thingamajigs still solves the problem. And I didn't get any errors whatsoever (they should be in the Error List, right?).