Made it link with Sigma
Removed stbi_write_tga(), stbi_write_bmp and everything using them.
Now compiling with -fPIC.