mk: Pass CFLAGS to the uv build
core::rt: Fix a use after free in uv 'write'