Fix makefiles to work with ebuild

Review URL: http://codereview.chromium.org/2951002
2 files changed