Fix CCFLAGS handling

When using CCFLAGS on the command line the parameters passed get passed through as one string which is escaped, breaks the compilation for C++ files.
This patch fixes this issue.