fix build error by renaming function "getline" to "gaa_getline"

The previous name "getline" conflicted with a function from <stdio.h>