Getting a weird C compiler error