Modify generic callback and optimization logger.
Fix: only export constraint violation for constrained problems.
Fix optimization logger for unconstrained problems.
Fix a weird compiler error.
Merge pull request #38 from bchretien/master

New callback API