fix def issue
gcc tweaks