Add GCC attributes when compiled with gcc. This helps find out if