poorly written wrapper library to make the GNU regex.h functions easier to use