[tor-commits] [tor/master] Move casts to separate C file to prevent compiler from optimising them away