layout.hpp: don't use scoped enum (need to be able to compile this with VS 2010 - not easily possible, and the benefit of a scoped enum is too small for me, in that particular case)