Intellectual Property Rights Enforcement in Imperfect Markets