40D: fix some compiler errors
Created originally on Bitbucket by jplxpto
Changesets for this Pull Request have not been imported, because it had been already declined on Bitbucket. Marked as closed by the import user.
I'm again trying to compile ML to 40D. I have resolved some issues but I need your help to solve others.