Fix warnings during compilation to javascript.