fix warnings when running with --noImplicitAny

There were a lot of warnings being thrown when I was compiling with --noImplicitAny option so I fixed up whatever signatures I could to get rid of the warnings.
Merge pull request #1496 from davidk01/patch-1

fix warnings when running with --noImplicitAny