Added include <algorithm> in ifdef WIN32 and VS2013

Added type in std::min/std::max
A try at getting color frames more robust.

Inspired by hovren pull request https://github.com/OpenKinect/libfreenect2/pull/72
Finding the footer by "9999" - mayby it should be found first, to use the packagelength.
Merge branch 'libfreenect2packeddata'
Merge branch 'libfreenect2headers'
Merge branch 'libfreenect2FindLibs'
Merge branch 'libfreenect2mathfix'
Merge branch 'rgbPacketHandling'