Fixed syntax error for Windows. Fixed ifdef statements for XTest support.