issue #5056. fix linux & android compile error