win: Don't crash on invalid parameter error.

libuv relies on suppressing the invalid parameter error in
uv__get_osfhandle, and it could hanppen frequently.

Fixes #513.
views: Fix showing window icon, closes #514.