Fix some use of undeclared global warnings