making conditional optimization for loci module

Do not enable -Os optimization when DEBUG is set.
Merge into master from pull request #90:
making conditional optimization for loci module (https://github.com/floodlight/indigo/pull/90)