Added windows/linux select code to the server