Bugfix: Address compiler warnings in VS2010

- Remove unused arguments.
- Address integer conversions.