Fix compiler warnings on Linux.