some fixes to scalar.c so they work in MSVC
Merge pull request #61 from seanlikeskites/master

MSVC fixes