@miconda I've added logic to check gcc search paths for libraries in case `pkg-config` returns nothing.
I've also fixed som formatting issues but the check-format task seems to complain about some lines but , I'm really sorry but, I can't see the difference between the wrong line and the new one.