Restrict non Desktop API for linux only (Win7 cause problems)