Linux build fails due to undeclared variable