Move various attributes before the declaration to be compatible with MSVC