configure: separated ldflags and added support for atlas
Fixed the INSTALL.md for new settings
Added option shared for atlas->building both static and dynamic