Updated declaration files and ts task to be 0.9.5 compatable.