Fix to build and link correctly.

* The LineMask function is removed due to returning a struct by value.
* The stringpos functions are removed as they're currently static
  inlines and not present within the compiled library.
* The same is true of the rect functions that were removed.