Eliminate compiler warnings; add '-Wsign-compare' for OSX
Merge pull request #188 from rstudio/bugfix/code-completion-warnings

Eliminate compiler warnings; add '-Wsign-compare' for OSX