updates for gcc

more to come ... needs some cmake love