Honour LIB_DIR when building libs.

BUG=None

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