Compensation of phsyiological motion for enhanced surgical accuracy