Added isCustomHeapInitialized method for Windows.