fixed all build errors

ready for testing and additional network implementations ;)