Fix TKOpenGl MinGW compilation

MinGW needs malloc.h for alloca().