fix for numerical problem when circle is aligned with optical axis
change link order for some strange compilers