Fixes for Ti SDK 3.4.1 and 64bit