Did you install all the patches via package manager then created new project? Or are you trying to build existing project after installing patches?
If after installation a sample project fails to build, I suspect there is a problem with that installation. I would re-install, install all the patches, then create new project and try to build.
I doubt you are using Xbee, so it's ok to comment those out, but you should not have to do this.