Adjusting code & project to GCC & CLANG requirements