enable wconversion and finish fixes (#3728)

* enable wconversion and finish fixes

* don't pass -Wconversion if it's win32
4 files changed