Fix return type of UserHasLicenseForApp on Linux, and fix test.