src/io/*apple*: improve error messages
src/io/source{,_wavread}.c: improve error message
src/io/sink_wavwrite.c: add native basic wav writer