Original code from rdesktop.org
Some build scripts
Build for MacOSX Mavericks with Windows Terminal Services SmartCard login support