This is how to create a .lib file to link against a DLL, nice post:
http://adrianhenke.wordpress.com/2008/12/05/create-lib-file-from-dll/