libstagefright: Various build fixes for legacy LPAPlayer

Change-Id: If2e1a2e72424c7551317a5b7054ff1919a338f20