changes to compile in linux
various tweaks for linux compile