Copied these global vars from main.cpp to fix compilation error
Merge pull request #1 from coconutpilot/master

Copied these global vars from main.cpp to fix compilation error