Fixes for mac os, miscellany
Adding typecastx
Merge branch 'master' of github.com:djoshea/matlab-utils