With the new LLVM5.1 on Mac OSX some packages have compile errors. This errors are fixed with this commit.
Fix issue #7,#8,#9