visual studio 2012 Level 4 warning fixes
more VS2012 L4 warning fixes
replaced UNUSED and assert combination by a fixed up assert macro - thanks luis! :)
reverted fileno change, MSVS specific API changes follow in another PR
Merge pull request #581 from tdev/vs2012_fixes

Visual Studio 2012 32Bit Level 4 Warning fixes