add new fuction fwrite_little_endian() and fix rawtowav.c to use it.