Second post-Newtonian motion of compact binaries