allow compile in subdirectories

With latest version of automake 1.14, need to add this to compile