src/db.c: Fix TMT_SCALEBACKGROUND.

It is boolean, not filename property.
Enhance build scripts.

 * Makefile: More customizable.
 * scripts/build.sh: Script detecting gcc-based toolchain and using make with appropriate variables.