overcome some compiler warnings
Merge pull request #145 from IanMayo/hotfix/objective_warnings

overcome some compiler warnings