Clean-up for leg-ctrl port. Project now compiles, but doesn't link.