Changed function signatures from ulong to uint.

Address issue #1.  (Also changed target framework to .NET 4.5.)