Added support of both static and shared builds
Authored by: artyom-beilis 2009-11-19
Parent: [r912]
Child: [r914]