Remi Collet's patches: Add QUANTUM_DEPTH constant, added tests for environements where QUANTUM_DEPTH = 16, Fix warning on helper declaration, initialize stack = 0 in appendimages