fixed the build

it was a bunch of preprocessor problems, but seriously our pre processor seems very very broken