Additional includes necessary for building on Cygwin.
Merge: Additional includes necessary for building on Cygwin.
Pad short blocks read from the end of samples with silence, so that the correlation is used in the case of samples shorter than the block length (rather than exiting the loop, leaving minimumVal as 2 and indicating success).