minor compile changes for unix