enable cap in build only for linux