compile tweaks for gcc