Changed compile flags and fixed testall to allow specifying the handranks file