use strncpy
change output file mode from 666 to 664. change type of mixer_options to unsigned short.
change error codes into an enum. safer picking of error string.
add headers to project files (backport from master commit 7baa8e323e05d88c57fd4113e6980a96db2db3ba)
Properly reset global state upon library shutdown.
Merge branch 'wildmidi-0.3' into wildmidi-0.3-backports