Changed digitalWrite()'s to direct bit manipulations as peekay123 advised at https://community.spark.io/t/adafruit-ili9340-library-ported/4010/2
Moved glimmer.cpp -> glimmer.ino, added application.h to includes and moved setup() and loop() to the end of file. This way I got it to compile locally.