fixing build for gcc