Add missing includes
Fix compile error
Check for gcc <= 4.8 instead of Android