The last version already have FK support inside. Even when I asked for this it was already inside. :-(
Only activate it with:
PRAGMA foreign_keys = ON;
And query its status:
PRAGMA foreign_keys;
http://www.sqlite.org/foreignkeys.html
Greetings. I hope to help.