fixed some compilation errors. appearently it wasn't building...