Add allocSize function

Found in https://github.com/thp/phablet-headers/commit/e1d85003d5b02349e5293d6b64563bdda60e2f79, this fixes "allocSize" was not declared in this scope error by gpu.cpp