Added make file to buidl basic shared library.
Converted some of the #defines into enums, removed compiler warning.