added patch for compiling on pandora. thanks to sebastien chev