Rewritten the patch to fix underlinking. Modified the definition of CFLAGS to let the build system get them. Various cleanups. Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>