Ofed cleanup

Cleanup ncm-ofed to work properly under el6. Also adding tests.