Preprocessor macros

Set the preprocessor macros needed by the build system
Consolidate the PIPE and PTHREAD into a single macro