Added basic support for ByteBuffer and Thread classes