Nearly working linux build