Could anyone give me some tips for how to compile the GEM library for Vanilla? Maybe just a short list of instructions to get me started? I am a total noob at this stuff and there are so many files :O

PS I'm sure i have to compile because just moving the GEM library into one of pd's paths gives me this at the console:

/Applications/Pd-extended.app/Contents/Resources/extra/Gem/Gem.pd_darwin: dlopen(/Applications/Pd-extended.app/Contents/Resources/extra/Gem/Gem.pd_darwin, 10): no suitable image found.  Did find:
/Applications/Pd-extended.app/Contents/Resources/extra/Gem/Gem.pd_darwin: mach-o, but wrong architecture Gem: can't load library