This issue was already fixed in commit http://anonscm.debian.org/cgit/pkg-mysql/galera-3.git/commit/?id=3ccca8f62609bd310d670de0fc96065466eaa2e8
I see your patch also contains diagnostic lines. If you want those included in the package, please rebase your patch on the current git master at http://anonscm.debian.org/cgit/pkg-mysql/galera-3.git/ (github mirror for easy pull requests available at https://github.com/ottok/galera-3) and send it as a patch or a git pull request. Thank you for looking into Galera build issues!