Began to bring up some of the stub methods on Linux.
	Added in a Timer implementation but needs to be moved to the main thread
	Added in a preferences implemenetation using NXMLEncoder and NDictionary
	Added missing header includes

Fixed a problem with the testing on Linux if the test does not work it loops forever
so some timeout on the test loops needs to be added.