Figured out weird issue where generated gperf code would not compile on clang but compiled on gcc. This was due to gperf's generated code messing around with line number and causing implicit declarations of functions.