Cleaned up the code

-malloc is replaced by macro new(<type>)
-free is now threadsafe
-PortC is initialized from our code
-removed dependencies on gpio.lib and portC_init.lib