Clean up extern declarations for Go.