Apply compiler flags set in CFLAGS and CXXFLAGS

Signed-off-by: Juha Kallioinen <juha.kallioinen@jollamobile.com>