Fix compilation warnings
Add --enable-threaded-resolver
Fix compilation with mingw
Handle cases when translation matches the input string

libRocket goes into an endless loop then, trying to translate the thing over and over again and eventually going into stack overflow