Added interface for getting optimization statistics.
Fixed C-to-Go string conversion.
Added compile options to help with debugging.