ThunderKat build system changes and prep for GCC-4.8