Extract declarations so it compiles on non-C99 compilers