fix includes in invtrig implementation