Don't check for 'dlopen' or 'dlfcn.h' if we're building with MSVC
Add some preliminary options for building with msvc and waf