making compilable for Linux