Better allocate the loop on stack or heap and use `uv_loop_init`. `uv_loop_new` is now considered deprecated.