make, main: fixed clang compilation, fixed build status, fixed ignore attr.

Works on older GCC versions too! Terribly unoptimized, will do that later if possible.