Added List container used by Object class, + unit tests

This is an intermediate step between adding a DirectSound Device
class. I've added some unit tests for common list operations to ensure
that these features are working, however obviously these tests are
very simple and could be more complete.

- Updated kt_assert() calls to prevent warning on unix systems.
  (Removed printf, replaced with fputs())
Fix errors occuring when optimization level greater than 0

Among other things.
Merge pull request #3 from caitp/issue-3

Need a list-container similar to java ArrayList