Add the -m-no-ms-bitfields GCC option to the Code::Blocks project