[build][misc] Should not add CFLAGS once again
[build] Should have finer control -

* be able to set optimisation level separately
* adjust warning flags
* alternate debug options
Merge pull request #35 from xively/build/various_improvements

Various improvements in build system