liblibc and libnative: misc fixes

libnative/io: datasync() wrongly called fsync().
liblibc and libnative: send() should use const buffers.