Use cpptasks instead of Makefile

So far, it compiles on Linux only but this approach shall make it
possible to eventually compile on Windows as well.
Make PAPI use optional

Also separated compiler settings to a named configuration.
Get rid of C99-style loops
Set include path according to OS