Try to compile. TODO: change wrapper on original unix functions