gcc: fix build with various libs on android

Signed-off-by: Paul Beeler <pbeeler80@gmail.com>