The issue with me was that my project included openSSL static libs and among the include headers was a file "ctype.h", that has the same name as the one of the files in macOS SDK /usr/include folder.
So, yeah, it has to do with "search and discovery" phase of the compiler.
I packed openSSL as a framework and added it to the project, solved this mix-up.