BUILD: Cleaner compiler/system global detection and use

Signed-off-by: Gama <misept.dieseneuf@gmail.com>
BUILD: Fixed function for warnings disabling, now using it

It allows to ignore warnings for all juce code.

Signed-off-by: Gama <misept.dieseneuf@gmail.com>