Fixes for Windows build warnings on VS2012
Enable warning as error for Windows
Fixes for warnings found by static analysis build into VS2012

 - The pragma disables suppress false positives from the static analysis
 - The other fixes fix real problems found by the static analysis
Pragma's specific to MSVC shouldn't be used
Fix additional bugs found via static analysis
Close file when done
Added missing NULL check
Fixed some small bugs found via static analysis
_add was missing the set to the backing size, so it would realloc way to much if adding multiple items
Fixed warnings re-introduced in Windows build via backwards patch
Warning ping-pong
Pong
Merge pull request #115 from litghost/windows_warnings

Fixes for Windows build warnings on VS2012