Fixed build problems related to generation of the generated sources dir.