Compile Fixes

Fixes to adding trileft and triright