apl.h: Add more required headers
Makefile: Fix apl and test builds

They need to depend on, and compile with object files
Makefile: Rename sanity test target to run-sanity

Was getting a conflict, likely because of the directory named 'test'
Makefile: run-sanity depends on test programs