colorout: map shortkeys of gamut check/softproof to ctrl-g/ctrl-s

temporary fix for #9831
(cherry picked from commit 222884cb017018361eeb91b9320efeece3c09a0c)
usleep is deprecated
(cherry picked from commit b35ff6c1b747b127df77c47a0700e17c70b268b8)
Fix erroneous struct timespec initialization
(cherry picked from commit 93af6fbc3a56bcc0f194ada3c7eb23ef6ad28c7d)
New round of magicnum vs. sizeof(staticbuf) cleanups
(cherry picked from commit 4731ec01f56950e5223d278eeb933890db101508)
Use size_t as variable type for storage of sizeof(staticbuf)
(cherry picked from commit 03223ed5eb357c8d9c35c210a742d5cbd2644af4)

Conflicts:
	src/common/image.c
	src/common/image.h
Masks: do not use float variable as loop counter!
(cherry picked from commit ec2c99df7ea8f37aa6c8b2686455872e91b08280)
Use guint as variable type for g_list_length() results
(cherry picked from commit c366ef782738618d3ad41d37b2fa81760db5aa59)

Conflicts:
	src/control/jobs/camera_jobs.c
	src/control/jobs/control_jobs.c
No strcat calls left. please use g_strlcat in new code :)
(cherry picked from commit 5a7159263a1c7feca9e66c20f0f63646557d7b10)
No strcpy calls left. please use g_strlcpy in new code :)
(cherry picked from commit be5b4ab4759c23508ec29734c6fb579f16052589)
Some more magicnumber vs. sizeof(staticbuf)
(cherry picked from commit d0c987e446679fee54616ed8e7abe10e407423cc)

Conflicts:
	src/libs/lib.c
Ported first half of sprintf calls to snprintf
(cherry picked from commit ddcbf02e93c85b26da96acd081b541c9e390eabe)

Conflicts:
	src/control/jobs/camera_jobs.c
	src/iop/colorin.c
	src/lua/modules.c
No vsprintf calls left. please use vsnprintf in new code :)
(cherry picked from commit 8e538e6204dbd0cbd2d661c458a30fea297cdc1a)