Rename "name" to "value" to be more consistent with Windows terminology.
Fix building on OSX and Linux.