Update Makefile

Change compiler, flags and filename.
Remove not implemented functions.
Update .gitignore according to the new filename.
Add "static" keyword where required.
Update Makefile.