Fixed document separation.
Fixed bundled libffi platform detection for windows 64 bit
Fixed compilation error on Linux.