Adjusted transparency detection for block images a bit.
Fixed bug on Windows.
Using binary flag when copying files (fixes problem on Windows).
Added check if sys/ioctl.h and unistd.h exist (needed for progress bar).