Replaced countof with BX_COUNTOF to avoid name collsions. Added allocator interface.
Replaced pragma warning with runtime error. Added toBool.