Makefile: use fileno macro work around on AIX