forward declaratiopn of some vars in order to compile on Windows