Merge pull request #39 from miloyip/LocalCopyOptimization

Fixes local copy optimization
Fixes warnings
Merge remote-tracking branch 'origin/master' into warning
Fixes a warning in release.
Fixes a warning about unused fread() return value
Fixes two other warning about unused fread() return value
Merge pull request #40 from miloyip/warning

Fix/Suppress all -Wall -Wextra -Weffc++ warnings on gcc 4.6.x - 4.8.x
Fixes premake4 for VS
Revert "Fixes premake4 for VS"

This reverts commit 63757f6405e327b100cc51e35fdf8cf32b5cc286.
Fixes premake4 script for VS
Simplify local copy optimization

Also moves StreamLocalCopy into internal namespace and physically in
reader.h