some cleanup, and fix some compiler warnings
Merge branch 'master' of github.com:JuliaLang/julia