Fixes an issue with initializing MAPI library.