Foreign Competition with Licensing