Fixed executable being built as a library