Use subdir-objects automake option