I think I sent an email previously regarding this to you, but I forgot to attach the patch that fixes the memory errors in 3.1-rc1 that prevent compiling. In the link below, there should be a zip folder, apply the first 2 patches (0002 and 0003) in it to 3.1-rc1 sources. The other 2 patches are...