Visual Studio compliance

int32_t type and lround function do not exist in VS.
Tested with VS2010 and VS2012
Merge pull request #10 from sgissinger/master

Visual Studio compliance