Unify libuv sizeof functions

@JeffBezanson  Pull request as requested.