check for headers, dynamically generate AM_CPPFLAGS
Little improvement for heuristic shit
rpc/types.h for osx