In all cases they were trying to use variables that aren't used in the build process, the sqlite include paths had typos, and sqlite3 was trying to use sqlite2's buildlink3.mk