port ipc_stress to Windows

This adds ipc_stress to cmake and fixes the code to compile on Windows. The test doesn't pass, but this is a step :)