Cast 'fd' to appropriate sized type.

    We have uninitialized crap in the syscall args otherwise.
Add fput/fputv calls.

    This allows us to put to a specific fd.