Added application makefile
Fixed application includes and vars