fixed rpi to get it working with pthread
there is a 'bug' in Write service, I have a workaround @FlorianPalm - check it please