Add static keyword to global variable declarations
Fix compile error on Windows
Add audio support