media-legacy: allow other platforms to build libs

Change-Id: Ie3e2c705d275d30e3c8ef2d1c0522ff05522c14a
Merge remote-tracking branch 'upstream/jellybean' into cm-10.1