adapt to new audioencoder API
changes for lame to write Xing tag at the end
mayaswell reuse the same buffer
adds android/osx library names