Fix an android compilation fail

Add a conditional compile option for android