≈20% faster, 2 times more precisely (0.17% difference against 0.37%)
move declarations to make ANSI compilers happy
add parentheses to avoid warnings
Merge pull request #172 from homm/alpha-blending-enhancement

Fix compilation on windows and one more thing