Moved inline extract* functions to align.h and made them static inline. Hopefully this
will get rid of the build error on Mac OSX.