Fix installing static libs

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>

Please tag it to 0.3. I've tested static and shared installing.