Added wine support and fixed some issues.