It now works with SDK 2.0.

I found this from:
http://forums.getpebble.com/discussion/comment/74562/#Comment_74562

Some structures were not correctly allocated and pointers were not being saved.
I also added a wscript and gitignore so this can be built immediately from the cloned repo.