linux/gcc build fixes