change to new ipc
fix compiler warnings
remove more includes, fix some warnings