fixed compiler warnings

for the upcoming xcode version