It looks like you are trying to build Win32::ODBC on a 64bit version of Perl and failing on a cast of pointer to UDWORD. The udValue variable, which would take the cast of pointer if it were 32bit, is used as an argument to SQLSetConnectOption which is a deprecated function. This might be only the tip of the iceberg as far as getting Win32::ODBC to compile and work in a 64bit context.
Can you use a 32bit version of Perl?
Can you use DBI and DBD::ODBC rather than Win32::ODBC? This is what I do and I have had not trouble with either 32bit or 64bit versions of perl on Windows 7 64bit.