fixes for gnu
added initial gnu case fixes