build/automake: Include local headers before system-wide headers.

Previously, building would break if a new function was added to the header
files and used, since `make` would still try to use the old system-wide
headers.