Warning fixes
Remove dead code
Put declaration of ang_sort in the proper place
Merge pull request #4 from BardurArantsson/warning-fixes-gcc

Warning fixes (GCC)