Linear was missing #include <vector>

This apparently didn't matter with libstdc++, but does with libc++
Fixed boost endian detection code

I'm not sure where I got the old code, but it seemed to be using some
quasi-internal boost components; fixed to use the proper interface.