compile with -std=c99 on linux