extract a chunk of shared sram loading code
Compile for XP, without linking to dxguid.lib or ddraw.lib