fixes for gcc
moves main to root directory
fixes Makefile
Merge pull request #12 from nokamoto/gcc

Gcc