fixed mac compiler errors
Merge pull request #43 from nitya-subramanian/master

Fixed mac compiler errors
Fix --results-log and --results-log-details
Add default implementation of save_final_config()
Commit to the database periodically when running sqlite
First pass at an API to let another program control main()
Fix bug to allow multiple tuning runs in a single process