hook vsnprintf

bionic's version will call bionic's internal malloc/free and pthreads,
this will mess up glibc's state, plus lead to abort() call in bionic
(why was this commented out?)
wrap stat functions

'struct stat' is incompatible, and bionic's version cant be used too.
avoid debug prints in release mode
wog: increase apk_index size for 1.0.5 version

Also do a check for overflow instead of crashing, and increase
apk_index_pos only when needed.
wog: fix off-by-1 error
wog: remove run hack, no longer needed
move module debug macro to common.h
wog: implement sound
Use Mix_Init (or not) depending on version, not platform
remove unnecessary non-portable include
fix warnings
call notify_gdb_of_libraries after module init

module init may load libs (usually for audio)
cuttherope: fix regression

2be81eae7afe removed unused va_arg but doing so creates stack
misalignment, so bring it back (and log it while at it).
Merge pull request #13 from notaz/master

WOG fixes+sound support, random fixes