static_image.h robust to being compiled with c++11
Min and Max use more direct compilation
Simpler implementation of SmallStack. The previous version was causing memory errors with libc++