fixed some build errors on Linux, more to come