pecl-apd doesn't have an AMD64 keyword. I added the keyword in my overlay and everything seems to compile fine in the AMD64 environment.
Done.