Generate correct library names and package import statements

R=sgjesse@google.com

Review URL: https://codereview.chromium.org//491013003