make code compile without --std=c99 on Linux