VS fixes

Makefile fixes. Also change types on INQUIRE ref parameters because
WIndows .NET is stricter than Mono with GetMethod resolution.