Small optimizations to construct_out
Fixed buggy use of g_slice_alloc. Fixes #22.

- g_slice_alloc'ing large output buffers would sometimes segfault wshd