fixed compile issues in sba with llvm
fixed compile issues in levmar with llvm
fixed compile warnings