Refactor cocoa bootstrapper
Fix sprite batch assertion