This commit breaks things, but represents a large step towards supporting R's C api as well as the Required packages. Don't expect to be able to build this now. I need to figure out exactly how I'm going to include the R dependencies.