Add: inclusion of stdio.h for sprintf.
Re-order the library linking flags for Clang.