fixes for windows.
get pmar build working.
Added tag RELEASE_1.2 for changeset cae5b5a7936c