fixed C compilation