Refactored dllimport calls to use a DLL-local define rather than individual defines.