tweaks for gcc compile