Created attachment 316801 [details]
Created attachment 316803 [details]
Here's a proposed patch that makes the beast build. Please proofread since I dont really fully understand the problem yet.
Has been fixed in the meantime.
*** This bug has been marked as a duplicate of bug 414133 ***