It gave me a lot of errors and warnings from fmgr.h:
... /Users/atpham/workspacecdt/pgsql/src/include/fmgr.h:59:2: error: unknown type name 'MemoryContext' MemoryContext fn_mcxt; /* memory context to store fn_extra in */ ^ /Users/atpham/workspacecdt/pgsql/src/include/fmgr.h:71:2: error: unknown type name 'Oid' Oid fncollation; /* collation for function to use */ ^ /Users/atpham/workspacecdt/pgsql/src/include/fmgr.h:72:2: error: unknown type name 'bool' bool isnull; /* function must set true if result is NULL */ ...