Fix up the build to link in the proper libs