Yeah that advice was from me, it still stands. Grab MAME Compiler, the latest source and build tools, set the options as you require (x64, strip symbols, etc, etc) then apply in following order, GM, D3D, other diffs. You can test them before applying if need be.