Fixed build issues with cas and saml2

Doing `npm install -d` on simong's casauthentication branch resulted in node-waf build errors for both cas and saml2. I've forked both projects, and provided fixes for this. I'll be submitting PRs to the original repos as well, so hopefully we can switch back to using theirs.