Fix build with gcc-4.8+ and unused-parameter error

Signed-off-by: Paul Beeler <sparksco@gmail.com>

Fix build

Renaming to "TARGET_GCC_VERSION_AND" should work.

Fix

some fixes for gcc 4.8