Ensure all relevant third-party code is saved.
Fix build with external protobuf.
Fix build on FreeBSD.
Disable some GPU code on FreeBSD for now :(