Changed 'gcc' to 'cc' for portability
Initialized variable used in if/else to satisfy compiler warnings