Significant progress getting this thing to build as a library!