Also changed compiler flags so that optimisations don't wreck the for loop when initialising the pipe IDs. Hopefully this fixes Android as well. Q_debugstream has a slight change just so that gcc doesn't get upset.
Very, very hackily...