windows build updates

VS can't inline an int initialization??
also... i thought type casting a calloc was bad practice - but we're
forced to here...