Forward declaration of some vars in order to compile on Windows