Also have the common bits of the preprocessor

This doesn't really belong in both pokecrystal and pokered. It should be
shared between the two without copy/paste.