mldonkey 3.1.2 & fix errors w/cpp and sed
mldonkey 3.1.2 & fix errors w/cpp and sed

Mldonkey-3.1.2 has compile errors due to their changes in arguments
to the cpp command and because Apple sed and gnu-sed do not have
a `-o` option.  The formula also has a failing inreplace.

Fix the failing inreplace by changing `-O6` to `-O3`.
Add a patch that uses the suggested change to `$(CPP)` from the
report on their website (url is in the formula comments).
Add a patch that changes `sed -o` to `sed >`.
Note in the comments the bug reports and how the patches are
not upstream as of 13 JUN 2012.  According to the Homebrew issue
listed below, the user reports these patches work well.

Fixes Homebrew/homebrew#12774

Closes Homebrew/homebrew#12825.

Signed-off-by: Jack Nagel <43386ce32af96f5c56f2a88e458cb94cebee3751@gmail.com>

maxim-belkin/homebrew-core,JCount/homebrew-core,jdubois/homebrew-core,gserra-olx/homebrew-core,spaam/homebrew-core,mfikes/homebrew-core,jvehent/homebrew-core,battlemidget/homebrew-core,moderndeveloperllc/homebrew-core,BrewTestBot/homebrew-core,ylluminarious/homebrew-core,nandub/homebrew-core,edporras/homebrew-core,stgraber/homebrew-core,mbcoguno/homebrew-core,mbcoguno/homebrew-core,aabdnn/homebrew-core,FinalDes/homebrew-core,jdubois/homebrew-core,cblecker/homebrew-core,j-bennet/homebrew-core,ShivaHuang/homebrew-core,mvitz/homebrew-core,grhawk/homebrew-core,filcab/homebrew-core,lemzwerg/homebrew-core,lembacon/homebrew-core,battlemidget/homebrew-core,Homebrew/homebrew-core,maxim-belkin/homebrew-core,mvbattista/homebrew-core,sdorra/homebrew-core,LinuxbrewTestBot/homebrew-core,cblecker/homebrew-core,forevergenin/homebrew-core,uyjulian/homebrew-core,chrisfinazzo/homebrew-core,wolffaxn/homebrew-core,robohack/homebrew-core,fvioz/homebrew-core,tkoenig/homebrew-core,jvillard/homebrew-core,robohack/homebrew-core,lasote/homebrew-core,nandub/homebrew-core,moderndeveloperllc/homebrew-core,makigumo/homebrew-core,sdorra/homebrew-core,dsXLII/homebrew-core,mahori/homebrew-core,fvioz/homebrew-core,mvitz/homebrew-core,zyedidia/homebrew-core,kuahyeow/homebrew-core,stgraber/homebrew-core,aren55555/homebrew-core,straxhaber/homebrew-core,Moisan/homebrew-core,tkoenig/homebrew-core,git-lfs/homebrew-core,dsXLII/homebrew-core,passerbyid/homebrew-core,jabenninghoff/homebrew-core,rwhogg/homebrew-core,FinalDes/homebrew-core,makigumo/homebrew-core,straxhaber/homebrew-core,Homebrew/homebrew-core,passerbyid/homebrew-core,git-lfs/homebrew-core,aabdnn/homebrew-core,j-bennet/homebrew-core,bfontaine/homebrew-core,nbari/homebrew-core,mbcoguno/homebrew-core,Moisan/homebrew-core,wolffaxn/homebrew-core,aren55555/homebrew-core,andyjeffries/homebrew-core,mvitz/homebrew-core,smessmer/homebrew-core,adam-moss/homebrew-core,DomT4/homebrew-core,sjackman/homebrew-core,bigbes/homebrew-core,BrewTestBot/homebrew-core,lasote/homebrew-core,LinuxbrewTestBot/homebrew-core,rwhogg/homebrew-core,DomT4/homebrew-core,kunickiaj/homebrew-core,adamliter/homebrew-core,lembacon/homebrew-core,gserra-olx/homebrew-core,Linuxbrew/homebrew-core,phusion/homebrew-core,ylluminarious/homebrew-core,kuahyeow/homebrew-core,reelsense/homebrew-core,sjackman/homebrew-core,mahori/homebrew-core,lembacon/homebrew-core,ShivaHuang/homebrew-core,jabenninghoff/homebrew-core,bcg62/homebrew-core,reelsense/homebrew-core,bfontaine/homebrew-core,Linuxbrew/homebrew-core,jdubois/homebrew-core,jvillard/homebrew-core,bigbes/homebrew-core,nbari/homebrew-core,wolffaxn/homebrew-core,jvillard/homebrew-core,mvbattista/homebrew-core,bcg62/homebrew-core,filcab/homebrew-core,edporras/homebrew-core,ilovezfs/homebrew-core,mfikes/homebrew-core,andyjeffries/homebrew-core,uyjulian/homebrew-core,adamliter/homebrew-core,zyedidia/homebrew-core,adam-moss/homebrew-core,zmwangx/homebrew-core,JCount/homebrew-core,grhawk/homebrew-core,kunickiaj/homebrew-core,chrisfinazzo/homebrew-core,spaam/homebrew-core,bcg62/homebrew-core,lemzwerg/homebrew-core,zmwangx/homebrew-core,forevergenin/homebrew-core,ilovezfs/homebrew-core,phusion/homebrew-core,jvehent/homebrew-core,smessmer/homebrew-core