changed some compiler settings to fix a problem with iOS static lib compilation