build tweaks for GCC