Statically link sample apps, fix cmake indenting