For linux build

Just a couple of things needed for building. Compiled and tested.