Fix timthumb when installed with composer

Timthumb stopped working when bolt is installed with composer. Working now, including bootstrap to have the different defines which are needed.