Extend the upper limit for the cache size to 4Gb.

This will let dt cache around 131000 compressed thumbnails.
Fix support for uint32_t value in preferences.
Merge pull request #300 from darktable-org/extend-cache-upper-limit

Extend the upper limit for the cache size to 4Gb.