Fixed some gcc compiler errors