making conditional optimization for loci module

Do not enable -Os optimization when DEBUG is set.

This is making the assumption that you don't want optimization when debugging, which seems reasonable :)