Are you sure this is exactly the same code you were compiling? It's just that I can't see anything syntactically wrong and the includes sure are sufficient...