Remove unused code.
Working on improving shared library support while building.
Remove unreachable code.
Mark a few more things as hidden/static.
Update premake4.lua to support shared library builds.