(BlackBerry) Move to Makefile build, fix crashes.
Merge pull request #20 from CatalystG/master

(BlackBerry) Move to Makefile build, fix crashes.