Replace the proto directory with pre-processor macros that do the same thing