closes #6; logic was wrong for gcc installation; changed to check for xcode instead