fix Linux build errors