Visual Studio compliance

int32_t type and lround function do not exist in VS.
Tested with VS2010 and VS2012