Make build script compatible with klp and up

It gets rid of c++11 and makes build script compatible with klp and up.

It also includes GL headers here, because headers in framework/native
might be different across API levels.

Change-Id: Ida425416a392cef878256965d69b54afe42b7263
diff --git a/shared/OpenglCodecCommon/ChecksumCalculator.cpp b/shared/OpenglCodecCommon/ChecksumCalculator.cpp
index 60940b8..7bd8211 100644
--- a/shared/OpenglCodecCommon/ChecksumCalculator.cpp
+++ b/shared/OpenglCodecCommon/ChecksumCalculator.cpp
@@ -16,8 +16,6 @@
 
 #include "ChecksumCalculator.h"
 
-#include <string>
-#include <vector>
 #include <string.h>
 
 // Checklist when implementing new protocol:
@@ -34,7 +32,7 @@
 // as well as modifying the maxChecksumSize function.
 static const size_t kV1ChecksumSize = 8;
 
-static constexpr size_t maxChecksumSize() {
+static size_t maxChecksumSize() {
     return 0 > kV1ChecksumSize ? 0 : kV1ChecksumSize;
 }
 
@@ -86,6 +84,15 @@
     }
 }
 
+ChecksumCalculator::ChecksumCalculator()
+                : m_version(0)
+                , m_numRead(0)
+                , m_numWrite(0)
+                , m_isEncodingChecksum(false)
+                , m_v1BufferTotalLength(0)
+{
+}
+
 void ChecksumCalculator::addBuffer(const void* buf, size_t packetLen) {
     m_isEncodingChecksum = true;
     switch (m_version) {