Some changes that I forgot to push with my last pull request

Fix netduino build.
Fix adc to work with resolution changes.