Add NDEBUG back and call LdrLoadDll correctly on Windows.