rename uv.a to libuv.a
make sizeof more secure. fix cast expression.