Make the dynamich build optional
Removed the SHARED_RUNTIME option