Adapt kernel API for compatiablity with 2.6.37
Adapt kernel API for compatiablity with 2.6.37

Later kernels have unlocked ioctl, and do not allow use of semaphores
for mutex's.

vyos/open-vm-tools,remfalc/vyt-open-vm-tools,vyatta/open-vm-tools,vyatta/open-vm-tools,vyos/open-vm-tools,remfalc/vyt-open-vm-tools,vyos/open-vm-tools,vyatta/open-vm-tools,remfalc/vyt-open-vm-tools