Some fixes in Linux.

Some fixes in Linux.