Fix compilation and thread stack size issues found on OS X
Preserve -s linker option (strip symbols) for GCC, while removing it for Mac OS where it causes issues
Fix ImageStack tests
Fix calculating the CFA pattern size.
Merge branch 'develop' of https://github.com/phries/hdrmerge into phries-develop