Fixed gcc build