Fix travis tests

Remove -DSTATIC, fix names of installed targets.