specified gcc executable
added NULL check to avoid Type Mismatch error