Moved some enums&structs from .c to .h, for compatibility with avg-gcc version 4.3.2