bug fixes for c++11 compatability (tr1 issues); bug fix for dumb vector swizzle code