build: fix the build

Use the header check to enable/disable the ipc code for now.